package com.dbs.interfaces.test.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import com.dbs.interfaces.test.service.TestService;

@RestController
public class RibbonTestController {
	/*
	 * // 这里可以private main中不能
	 * 
	 * @Autowired private RestTemplate restTemplate;
	 */

	@Autowired
	private TestService testService;

	@RequestMapping(value = "/add", method = RequestMethod.GET)
	public Integer add(Integer a, Integer b) {
		return testService.add(a, b);
	}

}
